package br.com.naybee.client.views.base;

import br.com.naybee.framework.client.componente.gwt.web.Div;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Widget;

public class BodyView extends Composite {

	private static BodyViewUiBinder uiBinder = GWT.create(BodyViewUiBinder.class);

	interface BodyViewUiBinder extends UiBinder<Widget, BodyView> {
	}

	@UiField
	protected Div body;

	public BodyView() {
		initWidget(uiBinder.createAndBindUi(this));
	}

	public void add(Widget widget) {
		body.clear();
		body.add(widget);
	}

}
